export function request(obj) {
  return new Promise((resolve, reject)=>{
        wx.request({
          url:obj.url,
          data:obj.data,
          method:obj.method,
          header: {
            'content-type': 'application/json' // 默认值
          },
          success(res) {
            console.log(res.data)
          },
          fail(res){
            console.log(res.data)
          }
        })
  })
}
